//
//  AKOTGeometryProvider.m
//  AKMac
//
//  Created by Ben Chen on 6/3/08.
//  Copyright 2008 Sleeper. All rights reserved.
//

#import "AKOTGeometryProvider.h"

@implementation AKOTGeometryProvider

- (CGSize)chessboardSize {
	return CGSizeMake(800, 800);
}

- (CGRect)rectForCell:(AKCellIndex)cellIndex {
	CGRect retVal = CGRectZero;
	
	if (cellIndex >= 0 && cellIndex <= AKOTNumOfCells) {
		int row = 7 - cellIndex / 8;
		int col = cellIndex % 8;
		
		retVal = CGRectMake(col * 100, 700 - row * 100, 100, 100);
	}
	
	return retVal;
}

@end
